package cn.calm.xhtml.api;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "namespace", namespace = "http://www.calm.cn/extras/tag")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class Namespace {
	private String uri;

	private List<Tag> tags;

	@XmlElement(name = "tag", type = Tag.class, namespace = "http://www.calm.cn/extras/tag")
	public List<Tag> getTags() {
		return tags;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}

	public String getUri() {
		return uri;
	}

	@XmlAttribute
	public void setUri(String uri) {
		this.uri = uri;
	}
}
